package examples.jsf.application;

import examples.jsf.FacesException;
import examples.jsf.component.UIViewRoot;
import examples.jsf.context.FacesContext;

import java.io.IOException;

/**
 * @author Bill
 * @version 2013-05-29
 */
public class ViewHandlerImpl extends ViewHandler {

    @Override
    public void renderView(FacesContext context, UIViewRoot viewToRender) throws IOException, FacesException {
        // suppress rendering if "rendered" property on the component is
        // false
        if (!viewToRender.isRendered()) {
            return;
        }

        // RenderKit 输出 view
    }

}
